# readme 类继承
class Animal():
    def shout(self):
        print("汪汪叫")

    def eat(self):
        pass


class Dog(Animal):
    pass


class Cat(Animal):
    # 覆盖父类方法
    def shout(self):
        print("喵喵叫")


class Taidi(Dog):
    pass


dog1 = Dog()
dog1.shout()
dog2 = Taidi()
dog2.shout()

cat1 = Cat()
cat1.shout()
